package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.QscRecord;
import org.jeecg.modules.platform.facade.IQscRecordFacade;
import org.jeecg.modules.platform.service.IQscRecordService;
import org.jeecg.modules.platform.vo.QscRecordVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 码质维码生产分配记录
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class QscRecordFacadeImpl extends IFacadeImpl<QscRecordVo, QscRecord, IQscRecordService>  implements IQscRecordFacade<QscRecordVo, QscRecord> {
        @Autowired
        private IQscRecordService qscRecordService;


         @Override
         public QscRecord po2Vo(QscRecordVo vo) {
                QscRecord po = new QscRecord();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public QscRecordVo vo2Po(QscRecord po) {
                QscRecordVo vo = new QscRecordVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
